|
|
| Veja também |
|---|
| Sketch → Sketcher constraints → Constrain coincident |
| Bancadas de trabalho |
| Sketcher |
| Atalho padrão |
| C |
| Introduzido na versão |
| - |
| Veja também |
| Constrain Lock, Constrain Point onto Object |
The Sketcher ConstrainCoincident tool creates a coincident constraint between points, or (introduced in 0.21) a concentric constraint between circles, arcs and/or ellipses (by making their centers coincident).
introduced in 1.0: This tool is replaced by the Sketcher ConstrainCoincidentUnified tool if the Unify coincident and point-on-object constraints option is selected in the preferences.
See also: Drawing aids.
The constraint can be created from macros and from the Python console by using the following command:
Sketch.addConstraint(Sketcher.Constraint('Coincident',LineFixed,PointOfLineFixed,LineMoving,PointOfLineMoving))
where :
Sketch is a sketch objectLineFixed is the number of the line, that will not move by applying the constraintPointOfLineFixed indicates which vertex of LineFixed has to fulfill the constraintLineMoving is the number of the line, that will move by applying the constraintPointOfLineMoving indicates which vertex of LineMoving has to fulfill the constraintAs the names LineFixed and LineMoving indicate, if both constrained vertices are free to move in any direction, the first one (first to be selected in the Gui) will remain fixed and the other one will move. In the presence of existing constraints, however, both edges may move.
The Sketcher scripting page explains the values which can be used for LineFixed, PointOfLineFixed, LineMoving and PointOfLineMoving, and contains further examples on how to create constraints from Python scripts.